package com.foreveross.dao;

import java.util.List;

import com.foreveross.vo.OrderService;

public interface ReservationDAO {

	public <T extends Object> void save(T entity) throws Exception;

	public <T> void remove(T entity) throws Exception;

	public Object findById(Class clazz, String id) throws Exception;

	public Object findByIntId(Class clazz, int id) throws Exception;

	public <T extends Object> T updateObject(T t) throws Exception;
	
	public List<OrderService> findReservationList(String weixinId, int pageIndex, int pageSize,String isweixin,String name,String type,String phone,String houseId,String status,String userId,String resCode) throws Exception;
	
	public long findReservationListCount(String weixinId,String isweixin,String name,String type,String phone,String houseId,String status,String userId,String resCode) throws Exception;
	
	public void deleteReservation(String id) throws Exception;

	public void updateStatusAndOrderTimeById(OrderService orderService) throws Exception;

}
